package com.ruoyi.quartz.task;

import com.ruoyi.framework.web.service.DataSyncService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @PackageName: com.ruoyi.quartz.task
 * @ClassName: FireTask
 * @Description:
 * @Author: czl
 * @Date: 2025/10/30 23:12
 */
@Component("fireTask")
@RequiredArgsConstructor
public class FireTask {

    private final DataSyncService dataSyncService;

    /**
     * 同步字典数据
     */
    public void dataSync() {
        dataSyncService.dataSync();
    }

    /**
     * 网关协议心跳数据同步
     */
    public void heartbeatDataReportedSync() {
        dataSyncService.heartbeatDataReportedSync();
    }

    /**
     * 微信模板通知
     */
    public void watchTemplateNotice() {
        dataSyncService.watchTemplateNotice();
    }
}
